package cn.plushine.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 客户
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "客户信息")
public class Customer {

    @ApiModelProperty(value = "客户id")
    private int id;
    @ApiModelProperty(value = "客户头像")
    private String image;
    @ApiModelProperty(value = "客户名称")
    private String name;
    @ApiModelProperty(value = "客户性别")
    private Boolean sex;
    @ApiModelProperty(value = "地址-省")
    private String a1;
    @ApiModelProperty(value = "地址-市")
    private String a2;
    @ApiModelProperty(value = "地址-区（县）")
    private String a3;
    @ApiModelProperty(value = "地址-详细地址")
    private String a4;
    @ApiModelProperty(value = "出生日期")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date date;
    @ApiModelProperty(value = "电话")
    private String telephone;
    @ApiModelProperty(value = "邮箱")
    private String email;
    @ApiModelProperty(value = "身份证号")
    private String idcard;
    @ApiModelProperty(value = "备注")
    private String others;
    @ApiModelProperty(value = "客户状态")
    private Boolean flag;
}
